﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace SecurityTest
{
    class Program
    {
        static void Main(string[] args)
        {

            float one = 16.0f / 16.0f;
            double ceil = Math.Floor(one);
            int integer = (int)ceil;

            Console.WriteLine(one+":"+ceil+":"+integer+":");


            RSA_API rsa = new RSA_API();

            AES_API aes = new AES_API();

            byte[] plaintext = System.Text.Encoding.UTF32.GetBytes("1234");

            Console.WriteLine("加密前 " + plaintext);

            byte[] encrypt = aes.AESEncoder(plaintext, "don't tell other");
            Console.WriteLine("加密後 " + encrypt.Length);

            byte[] decrypt = aes.AESDecoder(encrypt, "don't tell other");
            Console.WriteLine("解密後 " + decrypt.Length);


            Console.Read();
        }

    }
}
